
using Core.Toolkit.Core.Entitys;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Core.SimpleTemp.Entitys
{
    /// <summary>
    /// 基础_隐患等级
    /// 把固定的0-4级分配到不同工厂，产生多条数据相同id不同的隐患等级
    /// </summary>
    public class YH_Grade : Entity
    {
        /// <summary>
        /// 隐患等级
        /// </summary>
        [StringLength(20)]
        public String Level { get; set; }
        /// <summary>
        /// 风险分值
        /// </summary>
        public decimal? Points { get; set; }
        /// <summary>
        /// 关注范围
        /// </summary>
        [StringLength(500)]
        public String Focus { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public String Remark { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Guid? CreateDept { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Guid? UpdateDept { get; set; }
        /// <summary>
        /// 隶属工厂
        /// </summary>
        public Guid? CreateFactory { get; set; }

        /// <summary>
        /// 是否为重大隐患
        /// </summary>
        public bool? IsMajor { get; set; }
        /// <summary>
        /// 隐患等级通知岗位
        /// </summary>
        public ICollection<YH_GradePost> YH_GradePost { get; set; }
    }
}
